package o;

import android.content.ActivityNotFoundException;
import android.content.res.Resources.NotFoundException;
import android.database.SQLException;
import android.os.OperationCanceledException;
import android.util.AndroidRuntimeException;
import android.view.InflateException;
import com.huawei.appmarket.service.store.awk.bean.SafeAppCardBean;
import com.huawei.cloudservice.CloudAccountManager;
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap;

public abstract class esh implements esb {
    protected static final String ˊ = cdn.ˎ(ContentManager.getInstant().getContext());
    private static HashMap<Class, String> ॱ = new HashMap();

    protected abstract String[] ˊ();

    static {
        ॱ.put(IndexOutOfBoundsException.class, "101");
        ॱ.put(ActivityNotFoundException.class, "102");
        ॱ.put(UnsatisfiedLinkError.class, "103");
        ॱ.put(IllegalArgumentException.class, "104");
        ॱ.put(NullPointerException.class, "105");
        ॱ.put(ClassNotFoundException.class, "106");
        ॱ.put(ArrayIndexOutOfBoundsException.class, "107");
        ॱ.put(NotFoundException.class, "108");
        ॱ.put(InflateException.class, "109");
        ॱ.put(ClassCastException.class, "110");
        ॱ.put(SQLException.class, "111");
        ॱ.put(OperationCanceledException.class, "112");
        ॱ.put(AndroidRuntimeException.class, "113");
        ॱ.put(IOException.class, "114");
    }

    public void ˏ(String str) {
    }

    public LinkedHashMap<String, String> ॱ(String... strArr) {
        int i = 0;
        if (epz.ॱ(strArr)) {
            return new LinkedHashMap();
        }
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        String[] ˊ = ˊ();
        if (ˊ != null) {
            int length = strArr.length;
            int i2 = 0;
            while (i < length) {
                linkedHashMap.put(ˊ[i2], strArr[i]);
                i2++;
                i++;
            }
        }
        ˎ(linkedHashMap);
        return linkedHashMap;
    }

    protected void ˎ(LinkedHashMap<String, String> linkedHashMap) {
        linkedHashMap.put(CloudAccountManager.KEY_VERSION_NAME, ˊ);
        linkedHashMap.put("operationType", "3");
    }

    public String ˋ(Throwable th) {
        if (th == null) {
            return SafeAppCardBean.APP_FROM_INTERNET;
        }
        String str = (String) ॱ.get(th.getClass());
        if (dof.ˋ(str)) {
            return SafeAppCardBean.APP_FROM_INTERNET;
        }
        return str;
    }

    public String ˎ(Throwable th) {
        return th == null ? "NUKNOW" : th.getClass().getSimpleName();
    }
}
